package com.emergency.db.service.work;

import com.emergency.base.domain.Message;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface MessageService {
    Long save(Message message);

    void saveAll(List<Message> messageList);

    Message findById(Long id);

    List<Message> findAll();

    Long delete(Long id);

    Page<Message> findList(Map searchMap, int page, int size);
}
